import request from '@/utils/request'

// 查询物候期农事提醒列表
export function listArg(query) {
  return request({
    url: '/grape/arg/list',
    method: 'get',
    params: query
  })
}

// 查询物候期农事提醒详细
export function getArg(argId) {
  return request({
    url: '/grape/arg/' + argId,
    method: 'get'
  })
}

// 新增物候期农事提醒
export function addArg(data) {
  return request({
    url: '/grape/arg',
    method: 'post',
    data: data
  })
}

// 修改物候期农事提醒
export function updateArg(data) {
  return request({
    url: '/grape/arg',
    method: 'put',
    data: data
  })
}

// 删除物候期农事提醒
export function delArg(argId) {
  return request({
    url: '/grape/arg/' + argId,
    method: 'delete'
  })
}
